<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link type="text/css" rel="stylesheet" href="../css/app.css"/>
    <link type="text/css" rel="stylesheet" href="../css/loginMobile.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../datepicker/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/h5/js/all.js"></script>
    <link type="text/css" rel="stylesheet" href="../css/all.css"/>
</head>
<body id="Ibody">
<!--
	制作：陈道祥
	页面：公司认证
	更新：九哥
-->





<!-----------公司无工厂认证页面---------->
<div class="stepTwo" id="IstepFourNoFactoryCompanyCertify">
    <div class="companyHeadPanel">
        <div class="companyHeadOne">上传证件认证，增加与客户、与企业合作的信任度，证明企业实力，增加企业分值，只有合作方可以看到，请放心上传。</div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="modelPanel">
        <div class="modelTile">法人证件</div>

        <div class="bFileDiv" id="showXxz" postsave="legal_licences" title="请上传形象照" bixu="false"></div>
        <div class="bFileDiv" id="showSfz" postsave="legal_licences" title="请上传身份证照片" bixu="false"></div>
        <div class="bFileDiv" id="showByz" postsave="legal_licences" title="请上传毕业证" bixu="false"></div>

        <div class="bFileDiv" id="showJz" postsave="legal_licences" title="请上传奖状" bixu="false"></div>
        <div class="bFileDiv" id="showJhz" postsave="legal_licences" title="请上传结婚证" bixu="false"></div>
        <div class="bFileDiv" id="showJsz" postsave="legal_licences" title="请驾驶证" bixu="false"></div>




    </div>
    <div class="companyInfoSpace"></div>
    <div class="modelPanel">
        <div class="modelTile">公司证件</div>

        <div class="bFileDiv" id="zzjgdmzs" postsave="com_licences" title="请上传组织机构代码" bixu="false"></div>
        <div class="bFileDiv" id="yyzzs" postsave="com_licences" title="请上传营业执照" bixu="false"></div>
        <div class="bFileDiv" id="swdjzs" postsave="com_licences" title="请上传税务登记证" bixu="false"></div>

        <div class="bFileDiv" id="rents" postsave="com_licences" title="请上传租赁合同" bixu="false"></div>
        <div class="bFileDiv" id="licencess" postsave="com_licences" title="请上传各类许可证" bixu="false"></div>
        <div class="bFileDiv" id="honorss" postsave="com_licences" title="请上传荣誉证" bixu="false"></div>

        <div class="bFileDiv" id="houses" postsave="com_licences" title="请上传房产证" bixu="false"></div>


    </div>
    <div class="companyInfoSpace"></div>
    <div class="companyRemark">备注：方便你的客户找到你、招聘的员工找到你、了解你、信任你，图片尽量上传完善。让客户多了解自己，容易接单成功。细节决定成败，图片清晰。</div>
    <div class="nextStepDiv">
        <!--<span class="prevStep" id="comFilePre">上一步</span>-->
        <!--<span class="nextStep" id="comFileNext">下一步</span>-->
        <span class="prevStep" onclick="history.go(-1)">返回</span>
        <span class="nextStep" onclick="setSave()">保存</span>
    </div>
</div>





<!-----------提示信息---------->
<div id="errMsg"></div>
<!-----------提示信息---------->
</body>
<script type="text/javascript" src="../js/loginCom.js"></script>
<script>
    var pany=new MC.View.format();
    H5.TitleBar.create("公司认证");
    (function(){
        geComFile('gs');
    })();
    /**
     * 设置保存
     * */
    function setSave(){
        var list=[];
        list['legal_licences']={};
        list['com_licences']={};
        var postsavelist=$('[postsave=legal_licences]');
        for(var i=0;i<postsavelist.length;i++){
            var obj={};
            var one=$(postsavelist[i]);
       //     obj[one.attr('id')]=one.val()
            list['legal_licences'][one.attr('id')]=(one.val());
        }
        var postsavelist=$('[postsave=com_licences]');
        for(var i=0;i<postsavelist.length;i++){
            var obj={};
            var one=$(postsavelist[i]);
            //obj[one.attr('id')]=one.val()
            list['com_licences'][one.attr('id')]=(one.val());
        }
        console.log(list);
        MC.apiD('/api/member/factory/file-upload',{
            type:'gs',
            legal_licences:JSON.stringify(list['legal_licences']),
            com_licences:JSON.stringify(list['com_licences']),
        },function () {
            MC.msg.show('保存成功');
        });
    }
</script>
</html>